//
//  BaseCollectionView.swift
//  QFTZ
//
//  Created by apple on 2020/3/30.
//  Copyright © 2020 iOSCoderZhao. All rights reserved.
//

import UIKit

//MARK: - UICollectionView基类
class BaseCollectionView: UICollectionView {

    override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
        super.init(frame: frame, collectionViewLayout: layout)
        self.backgroundColor = .white
        self.contentInset = UIEdgeInsets.zero
        self.showsVerticalScrollIndicator = false
        self.showsHorizontalScrollIndicator = false
        self.contentInsetAdjustmentBehavior = .never
        self.scrollIndicatorInsets = self.contentInset
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

//MARK: - UICollectionViewCell基类
class BaseCollectionViewCell: UICollectionViewCell {

    var model: BaseCollectionViewCellModel? {
        didSet {

        }
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = .white
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
